package casa.depesos.app.com.http.req.no;


import casa.depesos.app.com.http.BaseBean;
import casa.depesos.app.com.http.HttpReq;
import casa.depesos.app.com.http.ReqCallback;
import casa.depesos.app.com.http.parser.GetCodeParser;

public abstract class BaseReq implements HttpReq {
    @Override
    public void req(ReqCallback callback) {
        req(getHost(), new GetCodeParser(false), callback);
    }

    public void req() {
        req(new ReqCallback() {
            @Override
            public void callback(boolean success, BaseBean bean) {

            }
        });
    }

    abstract protected String getHost();
}
